﻿using UnityEngine;
using System.Collections;

public class C3DObject : MonoBehaviour {

	Transform m_Trans;

	// Use this for initialization
	void Start () {
		m_Trans = transform;
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnDrag(Vector2 delta)
	{
		m_Trans.localRotation = Quaternion.Euler(0.5f * delta.y, -0.5f * delta.x, 0f) * m_Trans.localRotation;
	}
}
